package com.xiaoxi.userserver.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoxi.domain.user.BMSUserPasswordChangeLog;

/**
 * @Author xiaoxi
 * @ProjectName springcloudbms
 * @PackageName com.userserver.service
 * @ClassName BMSUserPasswordChangeLogService
 * @Description TODO
 * @Date 2023/2/2 14:47
 * @Version 1.0
 */
public interface BMSUserPasswordChangeLogService extends IService<BMSUserPasswordChangeLog>  {

    /**
     * 更新密码 用户同时修改 log
     * @param userId
     */
    Boolean updateUserPasswordChangeLog(Long userId);

    /**
     * 创建 用户  同时创建 log
     * @param userId
     */
    void insertUserPasswordChangeLog(Long userId);

    /**
     * 通过userId 找一个数据
     *
     * @param userId
     * @return
     */
    BMSUserPasswordChangeLog selectOneByUserId(Long userId);

}
